home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / DBVGAL17.ARJ / SRC_ASM.ARJ / L33SET.ASM < prev    next >
Assembly Source File  |  1992-01-25  |  1KB  |  60 lines

  1.         name    _L33set
  2.         ;   void L33set(void);
  3.         extrn   _EGA12set:FAR
  4. L33_TEXT       segment byte public 'CODE'
  5.         public  _L33set
  6.         assume  cs:L33_TEXT
  7. _L33set         proc    far
  8.         push    ds
  9.  
  10.         MOV     AX,0003         ; textmode 0x03
  11.         INT     10h      
  12.  
  13.         MOV     AX,1111h        ; 8x14 char set & video parameters
  14.         MOV     BL,00   
  15.         INT     10h      
  16.  
  17.         mov     dx,03d4h
  18.         mov     al,09h
  19.         out     dx,al
  20.         inc     dx
  21.         in      al,dx
  22.         and     al,0e0h
  23.         or      al,0bh
  24.         out     dx,al
  25.  
  26.         mov     dx,03d4h
  27.         mov     al,12h
  28.         out     dx,al
  29.         inc     dx
  30.         mov     al,8bh
  31.         out     dx,al
  32.  
  33.         XOR     AX,AX   
  34.         MOV     DS,AX   
  35.         MOV     AL,0ch   
  36.         MOV     ds:[0485h],AL           ; update BIOScrtpoints 
  37.         MOV     AL,20h
  38.         MOV     ds:[0484h],AL           ; update BIOScrtrows
  39.  
  40.         mov     ah,1
  41.         mov     ch,9
  42.         mov     cl,0bh
  43.         int     10h                     ; set cursor size
  44.  
  45.         mov     ax,seg _EGA12set
  46.         mov     es,ax
  47.         mov     bp,offset _EGA12set
  48.         mov     ax,1100h
  49.         mov     bx,0c00h
  50.         mov     cx,0100h
  51.         mov     dx,0
  52.         int     10h                    ; load custom character generator
  53.  
  54.         pop     ds
  55.         ret
  56. _L33set         endp
  57. L33_TEXT        ends
  58.         end
  59.  
  60.